package returnDataStruct;

import pojo.room;

import java.util.ArrayList;
import java.util.List;

public class roomListData {
    List<roomData> roomList;



    public roomListData(List<room> rl){
        roomList = new ArrayList<>();
        for(room r:rl){
            roomList.add(new roomData(r));
        }
    }

    public List<roomData> getRoomList() {
        return roomList;
    }

    public void setRoomList(List<roomData> roomList) {
        this.roomList = roomList;
    }


    @Override
    public String toString() {
        return "roomListData{" +
                "roomList=" + roomList +
                '}';
    }
}
